package com.itheima.service.mongo;

import com.itheima.domain.mongo.Video;
import com.itheima.domain.mongo.Voice;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface VideoService {
    PageBeanVo findRecommendVideoByPage(Long userId,Integer pageNum,Integer pageSize);
    int save(Video video);
    //int delete(Long userId, ObjectId publishId,Integer commentType);

    Video findById(ObjectId id);

    void add(Voice voice);

    Voice findall(Long toUserId);
}
